package es.unileon.prg2.patterns.composite;

import es.unileon.prg2.patterns.handler.GenericId;
import es.unileon.prg2.patterns.handler.Handler;

public class Country extends Composite{
	private Handler id;
	final int level = 1;
	
	public Country(Handler id){
		this.id = id;
	}
	
	public Country(String id){
		this(new GenericId(id));
	}
	
	public Handler getId(){
		return this.id;
	}

	@Override
	public int getLevel() {
		return this.level;
	}

	public String toString(){
		return "\tCountry: " + this.id.toString() + "\n";
		
	}
}
